package servicecenter

import (
	"sync"
)

// TmallCarLeaseRiskcallbackResult 结构体
type TmallCarLeaseRiskcallbackResult struct {
	// 错误码
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 错误消息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 错误码
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// 错误消息
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// 耗时
	CostTime int64 `json:"cost_time,omitempty" xml:"cost_time,omitempty"`
	// 当前时间
	GmtCurrentTime int64 `json:"gmt_current_time,omitempty" xml:"gmt_current_time,omitempty"`
	// true
	Object bool `json:"object,omitempty" xml:"object,omitempty"`
	// 成功与否
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

var poolTmallCarLeaseRiskcallbackResult = sync.Pool{
	New: func() any {
		return new(TmallCarLeaseRiskcallbackResult)
	},
}

// GetTmallCarLeaseRiskcallbackResult() 从对象池中获取TmallCarLeaseRiskcallbackResult
func GetTmallCarLeaseRiskcallbackResult() *TmallCarLeaseRiskcallbackResult {
	return poolTmallCarLeaseRiskcallbackResult.Get().(*TmallCarLeaseRiskcallbackResult)
}

// ReleaseTmallCarLeaseRiskcallbackResult 释放TmallCarLeaseRiskcallbackResult
func ReleaseTmallCarLeaseRiskcallbackResult(v *TmallCarLeaseRiskcallbackResult) {
	v.ErrorCode = ""
	v.ErrorMessage = ""
	v.MsgCode = ""
	v.MsgInfo = ""
	v.CostTime = 0
	v.GmtCurrentTime = 0
	v.Object = false
	v.Success = false
	poolTmallCarLeaseRiskcallbackResult.Put(v)
}
